<template>
  <span>
    <router-link to="" v-if="to"><slot></slot></router-link>
    <slot v-else></slot><span class="tag">{{ $store.state.separator }}</span>
  </span>
</template>
<script>
export default {
  name: 'myElementItem',
  props: {
    to: {
      type: [String, Object]
    }
  },
  data () {
    return {
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='scss'  scoped>
.bread {
  span:last-child {
    .tag {
      display: none;
    }
  }
}
</style>
